<template>
  <el-container class="layout-container">
    <el-aside width="220px">
      <Sidebar />
    </el-aside>
    
    <el-container>
      <el-header height="60px">
        <Header />
      </el-header>
      
      <el-main>
        <el-card class="main-card">
          <router-view />
        </el-card>
      </el-main>
    </el-container>
  </el-container>
</template>

<script setup>
import Sidebar from '../components/layout/Sidebar.vue'
import Header from '../components/layout/Header.vue'
</script>

<style scoped>
.layout-container {
  height: 100vh;
}

.el-header {
  background-color: #fff;
  border-bottom: 1px solid #e6e6e6;
  display: flex;
  align-items: center;
}

.el-aside {
  background-color: #304156;
  color: #fff;
}

.main-card {
  min-height: calc(100vh - 120px);
  border-radius: 8px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}
</style>